using UnityEngine;
using System.Collections;

public class UICameraSwitcher : MonoBehaviour {
	
	public Camera MainCamera;
	public Camera FixedCamera;
	
	// Use this for initialization
	void Start () {
		MainCamera.enabled = false;
		FixedCamera.enabled = true;
	}
	
	// Update is called once per frame
	void Update () {
		//switch between main camera and fiexed camera with "1" and "2" key
		if (Input.GetKey(KeyCode.Alpha1))
		{
			MainCamera.enabled = true;
			FixedCamera.enabled = false;
		}
		if (Input.GetKey(KeyCode.Alpha2))
		{
			MainCamera.enabled = false;
			FixedCamera.enabled = true;
		}
		
	}
}
